package cn.edu.sgu.www.mhxysy.dto.role;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.consts.RegExps;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class RoleJiadianDTO implements DataTransferObject {

    /**
     * 角色ID
     */
    @Pattern(regexp = RegExps.ROLE_ID, message = "角色ID" + CustomMessages.ILLEGAL)
    @NotBlank(message = CustomMessages.ROLE_ID_NOT_NULL)
    @ApiModelProperty(value = "角色ID", required = true)
    private String roleId;

    /**
     * 开启状态
     * 0-未开启；1-已开启
     */
    @ApiModelProperty(value = "开启状态")
    private Integer openStatus;

    /**
     * 解锁状态
     * 0-未解锁；1-已解锁
     */
    @ApiModelProperty(value = "解锁状态")
    private Integer unlockStatus;

    /**
     * 加点方案
     */
    @ApiModelProperty(value = "加点方案")
    private Integer jiadianSchema;
}